package cn.hhy.org.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department {
    // ctrl+alt+l 代码格式化
    private Long id;
    /*部门的编号*/
    private String sn;
    /*部门的名字*/
    private String name;
    /*部门层级展示 当成一个字符串处理*/
    private String dirPath;
    /* 状态 0：启用   -1:禁用*/

    private Integer state;
    /*部门负责人的id*/
    private Long manager_id;
    /*上级部门的id*/
    private Long parent_id;

    private Employee employee;

    private Department parent;

    List<Department> children = new ArrayList<>();

}
